* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

main.box {
	width: 100%;
	height: auto;
	padding: 10px;
	overflow-x: hidden;
}

main.box::-webkit-scrollbar {
	display: none;
}

main.box .container {
	position: relative;
	width: 100%;
}

.waterfall-row {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	margin-bottom: 10px;
	font-size: 0; /* 消除inline-block元素间的空白 */
}

.resource-item {
	display: inline-block;
	vertical-align: top;
	transition: transform 0.3s ease;
	-webkit-transition: transform 0.3s ease;
	-moz-transition: transform 0.3s ease;
	-ms-transition: transform 0.3s ease;
	-o-transition: transform 0.3s ease;
	background-color: #eee;
	position: relative;
}

.resource-item .title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	padding: 10px;
	text-align: left;
	color: #fff;
	font-size: 16px;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	-webkit-transition: opacity 0.3s ease;
	-moz-transition: opacity 0.3s ease;
	-ms-transition: opacity 0.3s ease;
	-o-transition: opacity 0.3s ease;
	pointer-events: none; /* 防止标题阻挡鼠标事件 */
}

.resource-item:hover .title {
	opacity: 1;
}
